import QtQuick 2.0
import Sailfish.Silica 1.0
import "../modify"

MFValueButton {
    id: comboBox

    property alias menu: controller.menu
    property alias currentIndex: controller.currentIndex
    property alias currentItem: controller.currentItem
    property alias automaticSelection: controller.automaticSelection
    readonly property bool _menuOpen: controller.menuOpen
    property alias _controller: controller

    height: _menuOpen ? menu.height + contentItem.height : contentItem.height
    value: controller.value


    onClicked: {
        controller.openMenu()
    }

    MFComboBoxController {
        id: controller
        comboBox: comboBox
    }
}
